<?php
/**
 * Created by PhpStorm.
 * User: Gooraye
 * Date: 2017-09-09
 * Time: 10:49
 */

namespace app\index\controller;


use app\src\account\enmu\AccountEnmu;
use app\src\filiation\action\FiliationAction;
use app\src\invite\action\InviteCodeAction;

class Fixuser
{
  public function index(){
      //4. 根据邀请码添加关系
      $uid = '335';
      $invite_code = '021452';
//
//      (new FiliationAction)->addByInviteCode($uid, $invite_code);
//      //5. 生成邀请码
//      (new InviteCodeAction())->create(AccountEnmu::USER, $uid);
      dump($uid);
  }
}